
<%@ page import="java.util.List" %>
<%@ page import="externaldata.gare.Gare" %>
<%@ page import="dao.DaoGare" %>

<form class="form-inline" role="form" id="form_search_train" method="post" action="">
	<div class="form-group">
		<label class="control-label" for="form_search_train_station_dua">Filtrer par gare</label>
		<select class="form-control" id="form_search_train_station_dua">
			<option value="">-</option>
			<% List<Gare> gares = DaoGare.getAllGaresWithDua();
			if(gares != null && !gares.isEmpty()) {
				for(Gare g : gares) { %>
					<option value="<%= g.getDua() %>"><%= g.getNom() %></option>
				<% }
			} %>
		</select>
 	</div>
</form>